import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// import api from './request/api/index'  //引入api
// // 将各模块api挂载在vue实例上
// Vue.prototype.$api = api
// 全局使用自定义组件
import zdyHeader from "./components/directive/componment/header.vue"
Vue.component("zdyHeader",zdyHeader)

// 全局引入自定义指令
import zhou from './components/directive/order/index'
Vue.use(zhou)

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

//自己写的样式
import "./style/characters.css"
import "./style/theme.css"
// import './style/theme.css'
// import './style/characters.css'
 
// 注册element-ui
Vue.use(ElementUI)

Vue.config.productionTip = false;


/* eslint-disable no-new */
// new Vue({
//   el: '#app',
//   router,
//   components: { App },
//   template: '<App/>'
// })

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
